package com.rongsheng.mpchartdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.littlejie.circleprogress.WaveProgress;

import java.util.Random;

public class WaveActivity extends AppCompatActivity {
    private Random mRandom;
    private WaveProgress wave_progress;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wave);
        mRandom = new Random();
        initView();
        initdata();
    }

    private void initdata() {
        wave_progress.setValue(mRandom.nextFloat() * wave_progress.getMaxValue());
//        wave_progress.setValue(70);
    }

    private void initView() {
        wave_progress = (WaveProgress) findViewById(R.id.wave_progress);

    }
}
